package com.boot.security.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.security.model.SystemModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 资源对象
 * @date 2020/2/17 17:39
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@TableName("tb_resource")
@ApiModel(value = "资源对象")
public class Resource extends SystemModel {

    @ApiModelProperty(value = "备注", name = "remark")
    private String remark;

    @ApiModelProperty(value = "权限类型", name = "type", notes = "0:后端接口地址,1:前端页面")
    private Integer type;

    @ApiModelProperty(value = "URL表达式", name = "pattern", notes = "接口地址、页面地址")
    private String content;

    @ApiModelProperty(value = "请求方式", name = "method", notes = "0:All,1:GET,2:POST,3:PUT,4:PATCH,5:DELETE,接口地址的接口地址,与页面地址无关")
    private Integer method;

}
